<?php

namespace app\model\user;

use app\model\activity\coupon\StoreCoupon;
use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;

class UserNotice extends BaseModel
{
    use ModelTrait;

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'user_notice';

    public function coupon()
    {
        return $this->belongsTo(StoreCoupon::class, 'coupon_id', 'id');
    }
}